import request from "@/api/request"

// 首页请求接口数据

function  index(data){
    return request({
        url:"/index/index",
        method:"get",
        data
    })
}
function  listaction(data){
    return request({
        url:"/topic/listaction",
        method:"get",
        data
    })
}
function  detailaction(data){
    return request({
        url:"/goods/detailaction",
        method:"get",
        data
    })
}
function  cartList(data){
    return request({
        url:"/cart/cartList",
        method:"get",
        data
    })
}
function  addCart(data){
    return request({
        url:"cart/addCart",
        method:"post",
        data
    })
}
function  deleteAction(data){
    return request({
        url:"/cart/deleteAction",
        method:"get",
        data
    })
}
function  addcollect(data){
    return request({
        url:"/collect/addcollect",
        method:"post",
        data
    })
}
function  submitAction(data){
    return request({
        url:"order/submitAction",
        method:"post",
        data
    })
}
function  getListAction(data){
    return request({
        url:"/address/getListAction",
        method:"get",
        data
    })
}
function  saveAction(data){
    return request({
        url:"/address/saveAction",
        method:"post",
        data
    })
}
function  detailAction(data){
    return request({
        url:"/order/detailAction",
        method:"get",
        data
    })
}

export {
  index,listaction,detailaction,cartList,addCart,deleteAction,addcollect,submitAction,getListAction,saveAction,detailAction
}